<template>
  <div>
    这里是列表

    <div>姓名</div>
    <div>操作</div>
    <div @click="goDetail">查看详情</div>
  </div>
</template>
<script setup>
import { useRouter, useRoute } from "vue-router";

const router = useRouter();
const route = useRoute();
const goDetail = () => {
  router.push({ name: "userDetail", query: { id: 1 } });
};
document.title = route.meta.title;
</script>
<style></style>
